package day3;

public class VariableOverrideTest {

    //定义一个name实例变量
    private String name = "李刚";
    //定义一个price类变量
    private static double price = 78.0;

    public void run(){

        //方法里的局部变量覆盖同名的类变量
        int price = 65;
        System.out.println(price);

        System.out.println(VariableOverrideTest.price);

    }


}
